package com.pencilisland.pay.api.bean.mp.core;
import java.io.Serializable;

import java.util.List;

import java.math.BigDecimal;


/**
 * 发布商品.客户端请求
 *
 * messageId[publishGoods]
 * 
 * @author breeze
 * 
 */
public class PublishGoodsREQ implements Serializable{

	private static final long serialVersionUID = 1L;

	public static class ElementImgDetails {

		private String url;
		private Integer type;

		/**
		 * @return 图片链接
		 */
		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}

		/**
		 * @return 图片类别
		 */
		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}
	}

	private String code;
	private String name;
	private String remark;
	private BigDecimal price;
	private Integer stock;
	private String freePost;
	private String merchantId;
	private Integer weight;
	private List<ElementImgDetails> imgDetails;

	public PublishGoodsREQ() {
		super();
	}	

	/**
	 * @return 商品编号
	 */
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return 商品名称
	 */
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return 商品描述
	 */
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return 商品单价
	 */
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	/**
	 * @return 库存
	 */
	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	/**
	 * @return 是否包邮
	 */
	public String getFreePost() {
		return freePost;
	}

	public void setFreePost(String freePost) {
		this.freePost = freePost;
	}

	/**
	 * @return 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * @return 排序
	 */
	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	/**
	 * @return 商品图片
	 */
	public List<ElementImgDetails> getImgDetails() {
		return imgDetails;
	}

	public void setImgDetails(List<ElementImgDetails> imgDetails) {
		this.imgDetails = imgDetails;
	}
}